public class Shili6 {
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException {
        Class clz = Class.forName("Person"); // 加载Person
        Object obj = clz.newInstance(); // 调用Person类的无参构造方法创建Person类示例
        System.out.println(obj); // 调用Person示例的toString方法,属性均为默认值
    }
}
